function jsonp(url, success, data, colName){
  let str = "";
  for(let i in data){
    str += `${i}=${data[i]}&`;
  }
  url += "?" + str.slice(0, -1);

  window[data[colName]] = function(res){
    success(res);
  }

  const script = document.createElement("script")
  script.src = url;
  document.body.appendChild(script);
}